
package com.activemq.service;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

/**
 * 消费者
 *
 * @author yexi
 */
@Service
public class ConsumerService {

    @JmsListener(destination = "testQueue")
    public void receive1(String message) {
        System.out.println("接收消息: " + message);
    }

}
